package buchwald.martin;


public class ColaEnlazada implements Queue {
	static final int TOPE = 0;
	ListaEnlazada list;
	
	public ColaEnlazada(){
		list = new ListaEnlazada();
	}
	
	public boolean isEmpty() {
		return list.isEmpty();
	}

	public int size() {
		return list.size();
	}

	public void add(Object item) {
		list.addLast(item);
	}

	public Object top() throws AssertionError{
		return list.first();
	}

	public void remove() throws AssertionError{
		list.removeFirst();
	}

}
